const KoaRouter = require('@koa/router')
const { sign, test } = require('../controller/login.controller')
const { verifLogin, verifAuth } = require('../middleware/login.middleware')

const loginRouter = new KoaRouter({ prefix: '/login' })
loginRouter.post('/', verifLogin, sign)
loginRouter.get('/test', verifAuth, test)
module.exports = loginRouter